/**
 * @author : Bruce
 * @date: 2024/7/23 - 07 - 23 - 21:17
 * @Description: PACKAGE_NAME
 * @version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        //共享的商品：
        Product p = new Product();
        //创建生产者和消费者线程：
        ProducerThread pt = new ProducerThread(p);
        CustomerThread ct = new CustomerThread(p);
        pt.start();
        ct.start();
    }
}
